import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import axios from 'axios';
import config from "./config/config";
import apis from './apis/index'
import store from './store'
import util from '@/utils/util';
import layer from 'vue-layer'
import 'vue-layer/lib/vue-layer.css'

import { Message,Loading,Pagination,Input,Checkbox,Carousel,CarouselItem,Form,
  FormItem, Button,ButtonGroup,Icon} from 'element-ui';
Vue.use(Loading.directive);
Vue.use(Pagination);
Vue.use(Input);
Vue.use(Checkbox);
Vue.use(Carousel);
Vue.use(CarouselItem);
Vue.use(Icon);
Vue.use(Button);
Vue.use(ButtonGroup);
Vue.use(Form);
Vue.use(FormItem);
import Share from 'vue-social-share'

Vue.use(Share)
Vue.config.productionTip = false;
Vue.prototype.$axios= axios;
Vue.prototype.$apis = apis; // api
Vue.prototype.$config=config;
Vue.prototype.$store = store;
Vue.prototype.$utils = util;
Vue.prototype.$loading = Loading.service;
Vue.prototype.$message = Message;
Vue.prototype.$layer = layer(Vue);
new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
